package rig.com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import rig.com.model.dto.ActivityDTO;

import javax.validation.constraints.NotNull;

/**
 * @author Rig
 * @create 2021/9/22 15:12
 **/
public interface ActivityService extends IService<ActivityDTO> {

    /*******
     * @description 秒杀
     * @param activityId
     * @param jwtToken
     * @return
     */
    public Boolean quick(@NotNull Long activityId, @NotNull String jwtToken);

    /********
     * @description 根据id获取活动信息
     * @param id
     * @return
     */
    public ActivityDTO queryById(@NotNull Long id);

    public boolean initActivity(Long activityId);
}
